#include "../net/udp_client.hpp"
#define HELLO   "hello"
int main()
{
    udp_client client("127.0.0.1", 8900);
    int fd = client.get_sockfd();
    printf("fd: %d\n", fd);
    char buf[4000];
    for (int i = 0; i < 3; i++){
        int n = send(fd, HELLO, sizeof(HELLO), 0);
        printf("n:%d\n", n);
        perror("aaaa");
        recv(fd, buf, sizeof(buf), 0);
        printf("%s\n", buf);
    }
    return 0;
}